package com.javaee.xiangyang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/util")
public class ToPage {

    @RequestMapping("/toPage")
    public ModelAndView toPage(ModelAndView modelAndView, String URL){
        modelAndView.setViewName("admin/"+URL);
        return modelAndView;
    }

    @RequestMapping("/toMallPage")
    public ModelAndView toMallPage(ModelAndView modelAndView, String URL){
        modelAndView.setViewName("mall/"+URL);
        return modelAndView;
    }

}
